package com.ssm.service.impl;

import com.ssm.entity.ShopCart;
import com.ssm.mapper.UserMapper;
import com.ssm.entity.User;
import com.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserMapper userMapper;
    @Override
    public User UserLogin(User user) {
        return userMapper.UserLogin(user);
    }

    @Override
    public ShopCart UserShopCartInformation(Integer userId) {
        return userMapper.UserShopCartInformation(userId);
    }
}
